//
//  StringToAttributedStringValueTransformer.m
//  EVE Mac Suite
//
//  Created by Vadim Lozko on 4/22/09.
//  Copyright 2009  __Vadim__. All rights reserved.
//

#import "StringToAttributedStringValueTransformer.h"


@implementation StringToAttributedStringValueTransformer

+ (Class)transformedValueClass
{
	return [NSAttributedString class];
}

+ (BOOL)allowsReverseTransformation
{
    return NO;
}

- (id)transformedValue:(id)value
{
	if(value == nil) return @"";
	NSAttributedString* attribString = [[[NSAttributedString alloc] initWithString:(NSString*)value] autorelease];
	return attribString;
}

@end
